CC = gcc
CFLAGS = -g -Wall
LDFLAGS = -lm
SOURCES = $(wildcard *.[c])
OBJS = $(patsubst %.c, %.o, $(SOURCES))

TARGET = wffs-test

all : $(OBJS)
	$(CC) -o $(TARGET) $(OBJS) $(LDFLAGS)
%.o : %.c
	$(CC) -c $(CFLAGS) $< -o $@
clean:
	rm -rf $(OBJS)
	rm -rf $(TARGET)
	rm -rf *~
	rm -rf core*


